<template>
	<view class="wf-box">
		<view class="head" :style="{ paddingTop: navBarHeight }">
			<view class="head-np">
				<view class="back" @click="back()">
					<image src="../../static/img/chat-09.png"></image>
				</view>
				<view class="title">消息中心</view>
				<view></view>
			</view>
		</view>

		<view class="main" :style="{ paddingTop: navBarHeight }">
			<view class="item">
				<image src="@/static/img/msg_1.png" mode="widthFix"></image>
				<view>评论、转发和收藏</view>
				<image src="../../static/img/chat-32.png" mode="widthFix"></image>
			</view>
			<view class="item">
				<image src="@/static/img/msg_2.png" mode="widthFix"></image>
				<view>点赞</view>
				<image src="../../static/img/chat-32.png" mode="widthFix"></image>
			</view>
			<view class="item">
				<image src="@/static/img/msg_3.png" mode="widthFix"></image>
				<view>粉丝</view>
				<image src="../../static/img/chat-32.png" mode="widthFix"></image>
			</view>
		</view>
	</view>
</template>

<script>
	import navBarMixin from '@/mixin/navBarMixin.js'
	export default {
		data() {
			return {
				type: !true
			}
		},
		mixins: [navBarMixin],
		onLoad(option) {
			if (option.type == 'false') this.type = false
			if (option.type == 'true') this.type = true
		},
		methods: {
			details() {
				uni.navigateTo({
					url: '/pages/me/rechargeDetails'
				})
			},
			back() {
				uni.navigateBack()
			}
		},
	}
</script>

<style lang="scss" scoped>
	.wf-box {
		overflow: hidden;

		.back {
			image {
				width: 20rpx;
				height: 37rpx;
			}
		}

		.head {
			position: fixed;
			z-index: 333;
			width: 100%;
			background: #fff;

			.head-np {
				display: flex;
				justify-content: space-between;
				align-items: center;
				width: 100%;
				height: 96rpx;
				padding: 0 30rpx;
				box-sizing: border-box;

				.title {
					font-size: 36rpx;
					font-weight: bold;
				}
			}
		}

		.main {
			// margin-top: 126rpx;
			margin-top: 246rpx;
			margin: 126rpx 30rpx 60rpx;
			padding: 0 30rpx 60rpx;
			background-color: white;
			border-radius: 10rpx;

			.item {
				height: 150rpx;
				display: flex;
				align-items: center;
				border-bottom: 1rpx solid #EEEEEE;

				image {
					&:nth-of-type(1) {
						width: 88rpx;
						margin-right: 20rpx;
					}
					&:nth-of-type(2) {
						width: 12rpx;
					}
				}
				view {
					font-size: 30rpx;
					flex: 1;
				}
			}
		}
	}
</style>